package xyz.riceball.usercore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import xyz.riceball.usercore.entity.po.RoleRightPO;
import xyz.riceball.usercore.entity.po.RoutePO;

import java.util.List;

/**
 * 角色权限关联关系表 Mapper层
 *
 * @author xiaovcloud
 * @since 2022-05-30 22:27:14
 */
@Mapper
public interface RoleRightMapper extends BaseMapper<RoleRightPO> {

    /**
     * 通过角色查询功能的code
     *
     * @param roleId
     * @return
     */
    List<RoutePO> selectRouteByRoleId(String roleId);
}
